version: '2'
services:
  {{ app_name }}:
    build: 
      context: ./{{ app_name }}
    image: {{ registry_dns }}:5000/fabric-peer:{{ app_name}}{{image_version }}

  bc-explorer:
    build:
      context: ./bc-explorer
    image: {{ registry_dns }}:5000/bc-explorer:2.0

{% for item in ['postgres','monitor', 'hejia_demo'] %}
  {{ item }}:
    build: 
      context: ./{{ item }}
    image: {{ registry_dns }}:5000/{{ item }}:{{ image_version }}
#    depends_on:
#      - base
{% endfor %}

{% for item in ['consultant', 'reform', 'thirdcom'] %}
  {{ item }}:
    build:
      context: ./ccer/
      dockerfile: Dockerfile-{{ item }}
    image: {{ registry_dns }}:5000/ccer-{{ item }}:{{ image_version }}

{% endfor %}
